﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// 2B订单
    /// </summary>
    /// 
    public class ToBOrder
    {
        public string RowId { get; set; }
        /// <summary>
        /// id	
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 订单号	
        /// </summary>
        public string orderNo { get; set; }
        /// <summary>
        /// 仓库编码	
        /// </summary>
        public string warehouseCode { get; set; }
        /// <summary>
        /// 参考号	
        /// </summary>
        public string referenceNo { get; set; }
        /// <summary>
        /// ASN NO	
        /// </summary>
        public string asnNo { get; set; }
        /// <summary>
        /// po	
        /// </summary>
        public string poNo { get; set; }
        /// <summary>
        /// 承运方式	
        /// </summary>
        public string expressMode { get; set; }
        /// <summary>
        /// 承运商名称	
        /// </summary>
        public string carrierName { get; set; }
        /// <summary>
        /// 跟踪号/提单号
        /// </summary>
        public string trackingNo { get; set; }
        /// <summary>
        /// 面单/提单URL	
        /// </summary>
        public string labelUrl { get; set; }
        /// <summary>
        /// 是否允许缺量发货	
        /// </summary>
        public string allowableUllage { get; set; }
        /// <summary>
        /// 状态	
        /// </summary>
        public string status { get; set; }
        /// <summary>
        /// 创建时间	
        /// </summary>
        public string createTime { get; set; }
        /// <summary>
        /// 出库时间	
        /// </summary>
        public string deliveryTime { get; set; }
        /// <summary>
        /// 错误信息	
        /// </summary>
        public string errorMsg { get; set; }
        /// <summary>
        /// 收件人信息	
        /// </summary>
        public omsTobOrderConsigneeVo omsTobOrderConsigneeVo { get; set; }
        /// <summary>
        /// 加工要求	
        /// </summary>
        public omsTobOrderProcessingVo omsTobOrderProcessingVo { get; set; }
        /// <summary>
        /// 货品明细	
        /// </summary>
        public List<omsTobOrderGoodsVoList> omsTobOrderGoodsVoList { get; set; }
        /// <summary>
        /// 出库sn明细	
        /// </summary>
        public List<omsTobOrderSns> omsTobOrderSns { get; set; }
        /// <summary>
        /// 码拖明细	
        /// </summary>
        public List<omsTobOrderDragDetails> omsTobOrderDragDetails { get; set; }
        /// <summary>
        /// 物流信息	
        /// </summary>
        public omsTobOrderExpressInfoVo omsTobOrderExpressInfoVo { get; set; }
    }

    /// <summary>
    /// 收件人信息
    /// </summary>
    public class omsTobOrderConsigneeVo
    {
        /// <summary>
        /// 姓名	
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 公司名		
        /// </summary>
        public string company { get; set; }
        /// <summary>
        /// 手机号		
        /// </summary>
        public string phone { get; set; }
        /// <summary>
        /// 城市		
        /// </summary>
        public string city { get; set; }
        /// <summary>
        /// 邮箱		
        /// </summary>
        public string email { get; set; }
        /// <summary>
        /// 国家代码		
        /// </summary>
        public string countryCode { get; set; }
        /// <summary>
        /// 州/省		
        /// </summary>
        public string province { get; set; }
        /// <summary>
        /// 门牌		
        /// </summary>
        public string doorplate { get; set; }
        /// <summary>
        /// 邮编		
        /// </summary>
        public string postalCode { get; set; }
        /// <summary>
        /// 详细地址一	
        /// </summary>
        public string street1 { get; set; }
        /// <summary>
        /// 详细地址二		
        /// </summary>
        public string street2 { get; set; }
    }

    /// <summary>
    /// 加工要求
    /// </summary>
    public class omsTobOrderProcessingVo
    {
        /// <summary>
        /// 码拖服务	
        /// </summary>
        public string stretchWrapping { get; set; }
        /// <summary>
        /// 贴标		
        /// </summary>
        public string labeling { get; set; }
        /// <summary>
        /// 加工说明		
        /// </summary>
        public string processExplain { get; set; }
        
    }

    /// <summary>
    /// 货品明细
    /// </summary>
    public class omsTobOrderGoodsVoList
    {
        /// <summary>
        /// id	
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// RowId	
        /// </summary>
        public string RowId { get; set; }
        /// <summary>
        /// 订单号	
        /// </summary>
        public string orderNo { get; set; }
        /// <summary>
        /// 货品编码	
        /// </summary>
        public string goodsCode { get; set; }
        /// <summary>
        /// 货品编码(MSKU)	
        /// </summary>
        public string goodsCode_MSKU { get; set; }
        /// <summary>
        /// 货品等级		
        /// </summary>
        public string goodsLevel { get; set; }
        /// <summary>
        /// 效期		
        /// </summary>
        public string validStatus { get; set; }
        /// <summary>
        /// 计划数量		
        /// </summary>
        public string planNum { get; set; }
        /// <summary>
        /// 发货数量		
        /// </summary>
        public string actualNum { get; set; }

    }


    /// <summary>
    /// 出库sn明细
    /// </summary>
    public class omsTobOrderSns
    {
        /// <summary>
        /// 货品编码	
        /// </summary>
        public string goodsCode { get; set; }
        /// <summary>
        /// sn编码		
        /// </summary>
        public string sn { get; set; }

    }

    /// <summary>
    /// 码拖明细
    /// </summary>
    public class omsTobOrderDragDetails
    {
        /// <summary>
        /// 托盘号	
        /// </summary>
        public string containerCode { get; set; }
        /// <summary>
        /// 货品编码		
        /// </summary>
        public string goodsCode { get; set; }
        /// <summary>
        /// 数量		
        /// </summary>
        public string num { get; set; }
        /// <summary>
        /// 长		
        /// </summary>
        public string length { get; set; }
        /// <summary>
        /// 宽		
        /// </summary>
        public string Width { get; set; }
        /// <summary>
        /// 高		
        /// </summary>
        public string height { get; set; }
        /// <summary>
        /// 重量		
        /// </summary>
        public string weight { get; set; }
        /// <summary>
        /// 重量单位		
        /// </summary>
        public string weightUnit { get; set; }
        /// <summary>
        /// 长度单位		
        /// </summary>
        public string lengthUnit { get; set; }

    }
    /// <summary>
    /// 物流信息
    /// </summary>
    public class omsTobOrderExpressInfoVo
    {
        /// <summary>
        /// 承运方式	
        /// </summary>
        public string expressMode { get; set; }
        /// <summary>
        /// 承运商		
        /// </summary>
        public string carrierName { get; set; }
        /// <summary>
        /// 其他承运商		
        /// </summary>
        public string carrierNameOther { get; set; }
        /// <summary>
        /// 跟踪号/提单号		
        /// </summary>
        public string trackingNo { get; set; }

    }
}
